export default {
  // id=1&dd=2
  jsonConverter: function (val) {
    let obj
    let value = []
    if(val!=""){
      if(val.indexOf("&")!=-1){
        let arr = val.split("&")
        for(let i of arr){
          console.log(i);
        }
      }else{
        obj = val.split("=")
        if(obj.length==2){
          value = {}
          value[obj[0]] = obj[1]
        }
      }
    }
    console.log(value);
  },
}